import request from '@/server'

export const queryProductTypeListApi = (data) => {
  return request.post({
    url: '/snsh/productType/queryList',
    data
  })
}

export const addProductApi = (data) => {
  return request.post({
    url: '/snsh/productType/save',
    data
  })
}

export const updateProductApi = (data) => {
  return request.post({
    url: '/snsh/productType/update',
    data
  })
}

export const deleteProductApi = (params) => {
  return request.get({
    url: '/snsh/productType/delete',
    params
  })
}

export const shopInfoApi = (data) => {
  return request.post({
    url: '/snsh/shop/queryList',
    data
  })
}

export const updateShopInfoApi = (data) => {
  return request.post({
    url: '/snsh/shop/update',
    data
  })
}
